package com.qf.news.mapper;

import com.qf.news.entity.NewsDetail;
import com.qf.news.entity.NewsDetailExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewsDetailMapper {
    long countByExample(NewsDetailExample example);

    int deleteByExample(NewsDetailExample example);

    int deleteByPrimaryKey(Long id);

    int insert(NewsDetail record);

    int insertSelective(NewsDetail record);

    List<NewsDetail> selectByExample(NewsDetailExample example);

    NewsDetail selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") NewsDetail record, @Param("example") NewsDetailExample example);

    int updateByExample(@Param("record") NewsDetail record, @Param("example") NewsDetailExample example);

    int updateByPrimaryKeySelective(NewsDetail record);

    int updateByPrimaryKey(NewsDetail record);

    List<NewsDetail> findByTitle(@Param("title") String title);
}